package de.htw.praxisprojekt.data.draw;

import java.awt.Graphics2D;

import de.htw.praxisprojekt.Vector2D;

public class DrawString extends DrawObject{
	private String text;
	private Vector2D point=new Vector2D();

	public DrawString(String text,float x,float y){
		this.text=text;
		this.point.set(x,y);
	}

	@Override
	public void draw(Graphics2D g2d){
		int height=g2d.getClipBounds().height;
		g2d.drawString(text,point.getX(),height-point.getY());
	}
}